import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    HomePage:{
      collapsed:false,
      PageTitle:"",
      scrollTop:0,

      HomeListArr:[],//首页列表
      HomeScrollTop:[],

      routerHistory:""
    }
  },
  mutations: {
    setListArr(state,data){
      console.log("state1",data)
      state.HomeListArr=[]
      state.HomeListArr.push(data)
    },
    getListArr(state){
      console.log("state2",HomeListArr)
      return state.HomeListArr
    }
  },
  actions: {
  },
  modules: {
  }
})
